﻿@{
    ViewBag.Title = "Triangle Area";
}

<h2>Triangle Area Calculator</h2>

@using (Html.BeginForm())
{
    <div>
        <label for="baseLength">Base Length:</label>
        <input type="number" id="baseLength" name="baseLength" required />
    </div>
    <div>
        <label for="height">Height:</label>
        <input type="number" id="height" name="height" required />
    </div>
    <div>
        <input type="submit" value="Calculate" />
    </div>
}

@if (ViewBag.Area != null)
{
    <h3>Area: @ViewBag.Area</h3>
}